//
//  YDHomeMarketModel.m
//  siyanone
//
//  Created by LK-IOS on 2018/3/23.
//  Copyright © 2018年 LK-News. All rights reserved.
//

#import "YDHomeMarketModel.h"

@implementation YDHomeMarketModel


-(BOOL)upOrDown
{
    float price = [_upDropPrice floatValue];
    if (price >= 0) {
        return YES;
    }else{
        return NO;
    }
}

-(NSString *)upDownRate
{
    float upDownFloat = [_upDropSpeed floatValue] * 100.00;
    NSString *string = [NSString stringWithFormat:@"%.2f%@",upDownFloat , @"%"];
    
    return string;
}

@end
